package com.jc.service.impl;

import com.jc.dao.userDao;
import com.jc.entity.User;
import com.jc.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author luoyong
 * @Date 2021.3.19
 * @Description 用户业务实现层
 */
@Service
public class UserServiceImpl implements UserService {

    @Resource
    private userDao userdao;

    @Override
    public User getUser(String name, String password) {
        return userdao.getUser(name,password);
    }

    @Override
    public int insertUser(String name, String password) {
        return userdao.insertUser(name,password);
    }

    @Override
    public int deleteUser(int id) {
        return userdao.deleteUser(id);
    }


}
